cmake_minimum_required(VERSION 3.3)
project(tests)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${tests_SOURCE_DIR}/cmake")
set(BIN_DIR ${tests_SOURCE_DIR}/bin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(SDL2 REQUIRED)
find_package(SDL2_Image REQUIRED)
include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR})
set(SOURCE_FILES main.cpp)
file(COPY assets DESTINATION .)
add_executable(tests ${SOURCE_FILES})
target_link_libraries(tests ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY})